package org.jeese.common.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * @Description:文件上传配置
 * @Package:org.jeese.common.properties
 * @author:wubc
 * @version:1.0
 * @date:2018年2月11日-下午2:56:29
 * @Copyright:2018 Inc. All rights reserved.
 */
@Component
//指定前缀
@ConfigurationProperties(prefix = "jeese.upload")
//可以指定配置文件
@PropertySource("classpath:properties/upload.properties")
public class TestProperties {
	/**
	 * 默认文件夹
	 */
	private String defaultFolder;
	/**
	 * 文件上传路径
	 */
	private String fileDiskPath;
	/**
	 * 文件预览位置
	 */
	private String fileViewPath;

	public String getDefaultFolder() {
		return defaultFolder;
	}

	public void setDefaultFolder(String defaultFolder) {
		this.defaultFolder = defaultFolder;
	}

	public String getFileDiskPath() {
		return fileDiskPath;
	}

	public void setFileDiskPath(String fileDiskPath) {
		this.fileDiskPath = fileDiskPath;
	}

	public String getFileViewPath() {
		return fileViewPath;
	}

	public void setFileViewPath(String fileViewPath) {
		this.fileViewPath = fileViewPath;
	}

}
